package com.ws.service.impl;

import java.util.Calendar;
import java.util.List;

import javax.annotation.Resource;
import javax.jws.WebService;

import com.ws.model.Users;
import com.ws.persistence.UsersMapper;
import com.ws.service.GreetingService;

@WebService(endpointInterface = "com.ws.service.GreetingService") 
public class GreetingServiceImpl implements GreetingService { 
	
    @Resource
    private UsersMapper usersMapper;

    public String greeting(String userName){
       return "Hello " + userName + ", currentTime is " + Calendar.getInstance().getTime(); 
    }

	@Override
	public List<Users> getUsersList() {
		return usersMapper.getUsersList();
	} 
} 
